gpg: Do not delete any keys if --dry-run is passed.
authorWerner Koch <wk@gnupg.org>
Mon, 20 May 2019 10:31:55 +0000 (12:31 +0200)
committerDaniel Kahn Gillmor <dkg@fifthhorseman.net>
Thu, 22 Aug 2019 19:11:59 +0000 (20:11 +0100)
commit78b641ec1afec951466d0f640c52a7dad6cdad5c
treedc68ddfb5d3ba236082608824c29227ea064eb5d
parent0aa46a22c6878056ecbf34c4b1dbb49e435d4655
gpg: Do not delete any keys if --dry-run is passed.

* g10/delkey.c (do_delete_key): Don't delete the keyblock on dry runs.
Do not clear the ownertrust.  Do not let the agent delete the key.
--

Co-authored-by: Matheus Afonso Martins Moreira
Signed-off-by: Werner Koch <wk@gnupg.org>
(cherry picked from commit 5c46c5f74540ad753b925b74593332ca92de47fa)

Gbp-Pq: Topic from-2.2.16
Gbp-Pq: Name gpg-Do-not-delete-any-keys-if-dry-run-is-passed.patch
g10/delkey.c